/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entity;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.OneToOne;

/**
 *
 * @author wei
 */
@Entity(name="Payment")
public class PaymentEntity extends DataObjectEntity implements Serializable {
    private boolean late;
    private String proofOfPaymentFilePath;
    
    @OneToOne
    private CustomerInvoiceEntity invoice;

    public PaymentEntity() {
        super();
    }

    public CustomerInvoiceEntity getInvoice() {
        return invoice;
    }

    public void setInvoice(CustomerInvoiceEntity invoice) {
        this.invoice = invoice;
    }

    public boolean isLate() {
        return late;
    }

    public void setLate(boolean late) {
        this.late = late;
    }

    public String getProofOfPaymentFilePath() {
        return proofOfPaymentFilePath;
    }

    public void setProofOfPaymentFilePath(String proofOfPaymentFilePath) {
        this.proofOfPaymentFilePath = proofOfPaymentFilePath;
    }

    @Override
    public String childToString() {
        return "PaymentEntity{" + "late=" + late + ", invoice=" + invoice + '}';
    }
    
}
